home *** CD-ROM | disk | FTP | other *** search
- on mouseUp
- global theChoice, gOpenGates, gWhichMenu
- set newLine to the mouseLine
- if newLine < 3 then
- nothing()
- else
- if the foreColor of line newLine of field gWhichMenu <> 5 then
- set the foreColor of line newLine of field "SeaMenu" to 35
- puppetSound("Click2")
- updateStage()
- alert("Until a password has been entered (at the start of the program), only the recipes in yellow will be accessible.")
- set the foreColor of line newLine of field "SeaMenu" to 246
- updateStage()
- exit
- end if
- if the foreColor of line newLine of field gWhichMenu = 5 then
- set the foreColor of line newLine of field "SeaMenu" to 138
- puppetSound("Click2")
- updateStage()
- set the foreColor of line newLine of field "SeaMenu" to 5
- set theText to line newLine of field "SeaMenu"
- set numEnd to offset(")", theText)
- if numEnd > 0 then
- set theSelection to char 1 to numEnd - 1 of theText
- set theChoice to value(theSelection)
- put value(theSelection) into field "Count"
- initPush(3, 12, 0)
- init(15, 16, 0)
- go("Recipes")
- RecipeSelect()
- set gWhichMenu to "SeaMenu"
- else
- exit
- end if
- end if
- end if
- end
-